<?php
ob_end_clean();

$query = "SELECT * FROM termin WHERE aktiv = 1";


$antwort = Core::getDB()->sendQuery($query);

$result = array();
foreach ($antwort as $a) {
	$result[] = array(
		"id"=>$a["id"],
		"title" => $a["titel"],
		"start" => $a["terminBegin"],
		"end" => $a["terminEnde"],
		"allDay" => $a["allDay"] == 1?true:false 
	);
}

echo json_encode($result);
?>